package com.dynTbl;

import java.util.ArrayList;
import java.util.List;

public class MyData {

	// this class will contain the attributes as well as a list of attributes
	
	private String id;
	private String name;
	private String value;
	private List<String> attributes;
	
	// def constructor
	public MyData(){
		this.setMyAttributes();
	}
	// param const
	public MyData(String id, String name, String value){
		this.setMyAttributes();
		this.id = id;
		this.name=name;
		this.value = value;
	}
	// create the list of attributes
	private void setMyAttributes(){
		attributes = new ArrayList<String>();
		attributes.add("id");
		attributes.add("name");
		attributes.add("value");
		

	}
	// setters & getters
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getValue() {
		return value;
	}
	public List<String> getAttributes() {
		return attributes;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public void setAttributes(List<String> attributes) {
		this.attributes = attributes;
	}
	
}
